|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectraar.engine.RAEngine_Simulator
public class RAEngine_Simulator
Simulation control and executor system.
| Field Summary | |
|---|---|
static double |
MIN_TIME
|
| Constructor Summary | |
|---|---|
RAEngine_Simulator(RAWorld world,
long currentRound)
Construct with a world and a round to start from. |
|
RAEngine_Simulator(RAWorld world,
long n_runs,
long currentRound)
Construct with a world and a round to start from. |
|
| Method Summary | |
|---|---|
void |
end()
End. |
RAWorld |
getWorld()
Return the world we're simulating. |
void |
pause()
Pause. |
boolean |
pulse()
Run one round. |
void |
rewind()
Rewind. |
boolean |
running()
Are we running? |
void |
setOwner(RAEngineObserver owner)
Set owner. |
void |
start()
Start. |
boolean |
tryResetAgent(RAAgent a)
Attempt a reset for the agent a. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static double MIN_TIME
| Constructor Detail |
|---|
public RAEngine_Simulator(RAWorld world,
long currentRound)
public RAEngine_Simulator(RAWorld world,
long n_runs,
long currentRound)
| Method Detail |
|---|
public RAWorld getWorld()
public void setOwner(RAEngineObserver owner)
public void start()
public boolean pulse()
pulse in interface RAPulseObserverpublic void end()
end in interface RAPulseObserverpublic void pause()
public void rewind()
throws RAException
RAExceptionpublic boolean tryResetAgent(RAAgent a)
public boolean running()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||